package com.dodo.blog.ui.component.input;

import com.dodo.blog.ui.component.container.Container;

/**
 * @author <a href="mailto:pohorelec@comvai.com">Jozef Pohorelec</a>
 */
public class Option
        extends Container
{
    private static final long serialVersionUID = 1L;

    private String value;

    public Option( String label )
    {
        this( "", label );
    }

    public Option( String value, String label )
    {
        super( Tag.OPTION );
        setAttribute( Attribute.VALUE, value );
        setInnerHtml( label );

        this.value = value;
    }

    public String getValue()
    {
        return value;
    }
}
